package com.lagou.controller;

import com.lagou.service.MehtodService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

import java.util.concurrent.Callable;

@Component
public class ComsumerComponet {

    @Reference
    private MehtodService mehtodService;

    public String methodA() throws InterruptedException {
        return mehtodService.methodA();
    }

    public String methodB() throws InterruptedException {
        return mehtodService.methodB();
    }

    public String methodC() throws InterruptedException {
        return mehtodService.methodC();
    }

}
